package com.powernode.feign;

import com.powernode.domain.UserAddr;
import com.powernode.feign.hystrix.OrderUserAddrFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 内容:
 * 作者: cy
 */
@FeignClient(value = "member-service", fallback = OrderUserAddrFeignHystrix.class)
public interface OrderUserAddrFeign {


    @GetMapping("p/address/getUserDefaultAddr")
    UserAddr getUserDefaultAddr(@RequestParam String openId);

}
